package org.elanfox.intellicommunity.biz.repository.msg;

import org.elanfox.intellicommunity.biz.entity.msg.AlarmMsgOptLogPO;
import org.elanfox.intellicommunity.common.ienum.MsgEnums;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/27
 */
@Repository
public interface AlarmMsgOptLogRepository extends JpaRepository<AlarmMsgOptLogPO, Long> {
    List<AlarmMsgOptLogPO> findByAlarmMsgGroupPO_GroupId(Long groupId);

    AlarmMsgOptLogPO findByAlarmMsgGroupPO_GroupIdAndAlarmStatus(Long groupId, MsgEnums.AlarmStatus alarmStatus);
}
